package com.boardour.wifip2p.packet;

/**
 * 发送包的定义：
 * 1.发送的数据
 * 2.发送的状态
 */
public abstract class SendPacket extends Packet {
    private boolean isClosed;

    /**
     * 数据
     */
    public abstract byte[] bytes();

    public boolean isClosed() {
        return isClosed;
    }

    public void setClosed(boolean closed) {
        isClosed = closed;
    }
}
